package com.zr.area.service.impl;

import java.util.List;
import com.zr.area.mapper.EimAreaselectAreaMapper;
import com.zr.area.service.IEimAreaselectAreaService;
import com.zr.common.core.domain.entity.EimAreaselectArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 地区Service业务层处理
 * 
 * @author zhongxin
 * @date 2022-10-25
 */
@Service
public class EimAreaselectAreaServiceImpl implements IEimAreaselectAreaService
{
    @Autowired
    private EimAreaselectAreaMapper eimAreaselectAreaMapper;

    /**
     * 查询地区
     * 
     * @param areaId 地区主键
     * @return 地区
     */
    @Override
    public EimAreaselectArea selectEimAreaselectAreaByAreaId(Long areaId)
    {
        return eimAreaselectAreaMapper.selectEimAreaselectAreaByAreaId(areaId);
    }

    /**
     * 查询地区列表
     * 
     * @param eimAreaselectArea 地区
     * @return 地区
     */
    @Override
    public List<EimAreaselectArea> selectEimAreaselectAreaList(EimAreaselectArea eimAreaselectArea)
    {
        return eimAreaselectAreaMapper.selectEimAreaselectAreaList(eimAreaselectArea);
    }

    /**
     * 新增地区
     * 
     * @param eimAreaselectArea 地区
     * @return 结果
     */
    @Override
    public int insertEimAreaselectArea(EimAreaselectArea eimAreaselectArea)
    {
        return eimAreaselectAreaMapper.insertEimAreaselectArea(eimAreaselectArea);
    }

    /**
     * 修改地区
     * 
     * @param eimAreaselectArea 地区
     * @return 结果
     */
    @Override
    public int updateEimAreaselectArea(EimAreaselectArea eimAreaselectArea)
    {
        return eimAreaselectAreaMapper.updateEimAreaselectArea(eimAreaselectArea);
    }

    /**
     * 批量删除地区
     * 
     * @param areaIds 需要删除的地区主键
     * @return 结果
     */
    @Override
    public int deleteEimAreaselectAreaByAreaIds(Long[] areaIds)
    {
        return eimAreaselectAreaMapper.deleteEimAreaselectAreaByAreaIds(areaIds);
    }

    /**
     * 删除地区信息
     * 
     * @param areaId 地区主键
     * @return 结果
     */
    @Override
    public int deleteEimAreaselectAreaByAreaId(Long areaId)
    {
        return eimAreaselectAreaMapper.deleteEimAreaselectAreaByAreaId(areaId);
    }
}
